#include <stdio.h>

int main(int argc, char **argv) {
  int a, b, c;
  int a_sqr, b_sqr;

  for (a = 1; a < 333; a++) {
    a_sqr = a * a;
    for (b = a+1; b < 666; b++) {
      b_sqr = b * b;

      int c = 1000 - (a+b);
      if (c*c == a_sqr + b_sqr) {
        printf("a=%d,b=%d,c=%d\n", a, b, c);
        return 0;
      }
    }
  }

  return 0;
}
